from celery.schedules import crontab

broker_url = 'redis://127.0.0.1:6379/5'
result_backend = 'redis://127.0.0.1:6379/6'

task_routes = {
    'project.tasks.my_task1': {'queue': 'queue1'},
    'project.tasks.my_task2': {'queue': 'queue2'}
}

beat_schedule = {
    "every-5-seconds": {
        "task": "project.tasks.my_task3",
        "schedule": 5.0
    },
    "add-every-monday-morning": {
        "task": "project.tasks.my_task2",
        "schedule": crontab(hour=7, minute=30, day_of_week=1)
    }
}
